── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Loading required package: tmap
Loading required package: spatstat
Loading required package: spatstat.data
Loading required package: spatstat.geom
spatstat.geom 3.0-5
Loading required package: spatstat.random
spatstat.random 3.1-3
Loading required package: spatstat.explore
Loading required package: nlme
Attaching package: 'nlme'
The following object is masked from 'package:dplyr':
collapse
spatstat.explore 3.0-6
Loading required package: spatstat.model
Loading required package: rpart
spatstat.model 3.1-2
Loading required package: spatstat.linnet
spatstat.linnet 3.0-4
spatstat 3.0-3
For an introduction to spatstat, type 'beginner'
Loading required package: raster
Loading required package: sp
Attaching package: 'raster'
The following object is masked from 'package:nlme':
getData
The following object is masked from 'package:dplyr':
select
Loading required package: maptools
Checking rgeos availability: FALSE
Please note that 'maptools' will be retired during 2023,
plan transition at your earliest convenience;
some functionality will be moved to 'sp'.
Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
which has a restricted licence. It is disabled by default;
to enable gpclib, type gpclibPermit()
Loading required package: rgdal
Please note that rgdal will be retired during 2023,
plan transition to sf/stars/terra functions using GDAL and PROJ
at your earliest convenience.
See https://r-spatial.org/r/2022/04/12/evolution.html and https://github.com/r-spatial/evolution
rgdal: version: 1.6-4, (SVN revision 1196)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.5.2, released 2022/09/02
Path to GDAL shared files: C:/Users/65917/AppData/Local/R/win-library/4.2/rgdal/gdal
GDAL binary built with GEOS: TRUE
Loaded PROJ runtime: Rel. 8.2.1, January 1st, 2022, [PJ_VERSION: 821]
Path to PROJ shared files: C:/Users/65917/AppData/Local/R/win-library/4.2/rgdal/proj
PROJ CDN enabled: FALSE
Linking to sp version:1.6-0
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
Loading required package: kableExtra
Attaching package: 'kableExtra'
The following object is masked from 'package:dplyr':
group_rows
Loading required package: plotly
Attaching package: 'plotly'
The following object is masked from 'package:raster':
select
The following object is masked from 'package:ggplot2':
last_plot
The following object is masked from 'package:stats':
filter
The following object is masked from 'package:graphics':
layout
Loading required package: ggthemes
Loading required package: onemapsgapi
Loading required package: devtools
Loading required package: usethis
Simple feature collection with 0 features and 1 field
Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA
Geodetic CRS: New Beijing
[1] neighbourhood geometry
<0 rows> (or 0-length row.names)
beforecovid_sf <-st_as_sf(beforecovid, # our coordinates are the longitude and latitudecoords =c("longitude", "latitude"), # the geographical features are in longitude & latitude, in decimals# as such, WGS84 is the most appropriate coordinates systemcrs =4326) %>%st_transform(crs=4555)#afterwards, we transform it to SVY21, our desired CRS
aftercovid_sf <-st_as_sf(aftercovid, # our coordinates are the longitude and latitudecoords =c("longitude", "latitude"), # the geographical features are in longitude & latitude, in decimals# as such, WGS84 is the most appropriate coordinates systemcrs =4326) %>%st_transform(crs=4555)
Simple feature collection with 0 features and 2 fields
Bounding box: xmin: NA ymin: NA xmax: NA ymax: NA
Geodetic CRS: New Beijing
[1] osm_id type geometry
<0 rows> (or 0-length row.names)